package com.lxr0860.lxr0860production_test.db.tb;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * 类描述:[菜单类实体]
 * 说明:
 * @author: LXR-zsm
 * @Date: 2023/10/17 9:54
 */
@Entity
public class Menu {
    @PrimaryKey(autoGenerate = true)//通过接口设置自增约束
    @ColumnInfo(name="id")//设置属性字段名
    private int id;

    @ColumnInfo(name="parent_id")//上级menu编号   顶级编号0
    private int parentId;
    @ColumnInfo(name="menu_name")
    private String menuName;

    /**
     * 是否是通用的
     * 1：通用  0：选配
     */
    @ColumnInfo(name = "is_common")
    private int isCommon;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public int getIsCommon() {
        return isCommon;
    }

    public void setIsCommon(int isCommon) {
        this.isCommon = isCommon;
    }
}
